namespace GPSTrackingReports
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;

    /// <summary>
    /// Summary description for VPCResumenByBusRoutes.
    /// </summary>
    public partial class NotificationsGroups : Telerik.Reporting.Report
    {
        public NotificationsGroups()
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
            //SetParameters(DateTime.Parse("2013/08/30"), DateTime.Parse("2013/08/30"), 1);
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        public void SetParameters(DateTime dateBegin, DateTime dateEnd, Image logo)
        {
            sqlConexion2.Parameters["@DateBegin"].Value = dateBegin;
            sqlConexion2.Parameters["@DateEnd"].Value = dateEnd;

            pictureBox1.Value = logo;
            pictureBox1.Width = Unit.Pixel(logo.Width);
            pictureBox1.Height = Unit.Pixel(logo.Height);
        }

        public void SetOptionalCompanyID(int companyID)
        {
            sqlConexion2.Parameters["@CompanyID"].Value = companyID;
        }

        public void SetOptionalGPSImei(string gpsImei)
        {
            sqlConexion2.Parameters["@GPSImei"].Value = gpsImei;
        }

        public void SetOptionalGeoFenceID(int geoFenceID)
        {
            sqlConexion2.Parameters["@GeoFenceID"].Value = geoFenceID;
        }
    }
}